package com.mqtt.ctwingmqtt.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("dtu")
public class DtuEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("dtu_id")
    private Long dtuId;

    @TableField("dtu_code")
    private String dtuCode;

    @TableField("dtu_name")
    private String dtuName;

    @TableField("createtime")
    private Date createTime;

    @TableField("updatetime")
    private Date updateTime;
}
